package com.cy.service;

import com.cy.bean.AdminList;
import com.cy.bean.UserList;
import com.cy.dao.LoginDao;
import com.cy.dao.LoginDaoImpl;

public class LoginServiceImpl implements LoginService {

	LoginDao loginDao = new LoginDaoImpl();

	@Override
	public UserList findUser(String username, String password) {
		return loginDao.findUser(username, password);
	}

	@Override
	public AdminList findAdmin(String username, String password) {
		return loginDao.findAdmin(username, password);
	}

}
